yum install -y yum-utils device-mapper-persistent-data lvm2

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

# 清理缓存
yum clean all

# 生成新的缓存
yum makecache fast

# 查看所有社区版 Docker 安装包版本
yum list docker-ce --showduplicates | sort -r

yum -y install docker-ce

sudo systemctl start  docker
sudo systemctl enable docker

sudo yum update
sudo yum install docker-compose-plugin
